<?
$this->title = Yum::t('My inbox');

$this->breadcrumbs=array(
		Yum::t('Messages')=>array('index'),
		Yum::t('My inbox'));

echo Yum::renderFlash();

echo '<h2>' . Yum::t('Messages') . '</h2>';

$this->beginContent('//layouts/message_nav',array('active'=>'1'));

?>
<div class="form message-form">
<?php
$this->widget('bootstrap.widgets.TbGridView', array(
			'id'=>'yum-message-grid',
			'dataProvider' => $model->search(),
			'columns'=>array(
				array(
					'type' => 'raw',
					'name' => Yum::t('来自'),
					'value' => '$data->getFromUserLink();'
					//'value' => 'CHtml::link($data->from_user->username, array("//profile/profile/view"),"id" => $data->from_user_id))'
					),
				array(
					'type' => 'raw',
					'name' => Yum::t('标题'),
					'value' => 'CHtml::link($data->getTitle(), array("view", "id" => $data->id))',
					),
				array(
					'name' => '发送时间',
					'value' => '$data->getDate()',
					),
				array(
					'class'=>'CButtonColumn',
					'header'=>'操作',
					'template' => '{view}{delete}',
					),
				),
				)); 
?>
</div>
<?php 
$this->endContent();
?>
